﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using System.Management.Automation;

//using ESF.MUP.BasePlatform;
//using ESF.MUP.BasePlatform.Services;
//using ESF.MUP.BasePlatform.Domain.Model;
//using ESF.MUP.BasePlatform.ApplicationServices.Interfaces;
////using ESF.MUP.BasePlatform.DbService;
////using ESF.MUP.BasePlatform.DbService.MSSQL;

//using Microsoft.Practices.Unity;

//namespace ESF.MUP.Powershell
//{
//    [Cmdlet(VerbsCommon.Add, "Environment")]
//    public class AddEnvironment : BaseCmdlet
//    {

//        [Parameter(Mandatory=true)]
//        public String Name { get; set; }

//        protected override void ProcessRecord()
//        {
//            IEnvironmentService envSvc = MiddlewareManagementService.Current.GetEnvironmentService();

//            ESF.MUP.BasePlatform.Domain.Model.Environment env = new BasePlatform.Domain.Model.Environment()
//            {
//                Name = this.Name
//            };

//            envSvc.Add(env);

//            this.WriteObject(env);
//        }
//    }
//}
